package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmInfoSrc;
import com.aijk.ehm.model.qo.EhmInfoSrcQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmInfoSrcApi {
    Long save(EhmInfoSrc bean) throws ErrorCodeException;

    void update(EhmInfoSrc bean) throws ErrorCodeException;

    EhmInfoSrc findOne(Long id) throws ErrorCodeException;

    List<EhmInfoSrc> list(EhmInfoSrcQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmInfoSrcQo qo);

    PageInfo<EhmInfoSrc> page(EhmInfoSrcQo qo);
}